﻿@using www.Controllers
@using www.SService
@model www.SService.RelaxStaffDataContract
@{
    ViewBag.Title = "GrandRole";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@if (Model != null)
{
    <div class="content">
        <div class="row">
            <div class="col-left">Cấp quyền cho nhân viên</div>
            <div class="col-right">@Model.Name</div>
        </div>
        <div class="grand-left">
            <table style="width: 100%; height: auto; border: 1px solid #008080;" cellpadding="1" cellspacing="1">
                <tr style="background: #0000cd; color: #fff; height: 30px; font-size: 13px; font-weight: bold; text-align: center;">
                    <th>Tên menu</th>
                    <th>Trạng thái</th>
                    <th>Thao tác</th>
                </tr>
                @if (ViewData["NotExists"] != null)
                {
                    foreach (var item in (List<RelaxMenuDataContract>)ViewData["NotExists"])
                    {
                    <tr style="height: 25px;">
                        <td>@item.Name</td>
                        <td>@Utility.Active(item.Active)</td>
                        <td>@Html.ActionLink("Thêm", "AddRole", new { menuId = item.Id, staffId = Model.Id })</td>
                    </tr>
                    }
                }
            </table>
        </div>
        <div class="grand-right">

            <table style="width: 100%; height: auto; border: 1px solid #008080;" cellpadding="1" cellspacing="1">
                <tr style="background: #0000cd; color: #fff; height: 30px; font-size: 13px; font-weight: bold; text-align: center;">
                    <th>Thao tác</th>
                    <th>Tên menu</th>
                    <th>Trạng thái</th>
                </tr>
                @if (ViewData["Exists"] != null)
                {
                    foreach (var item in (List<RelaxMenuMemberDataContract>)ViewData["Exists"])
                    {
                    <tr style="height: 25px;">
                        <td>@Html.ActionLink("Xóa", "DeleteRole", new { id = item.Id, staffId = Model.Id })</td>
                        <td>@item.MenuName</td>
                        <td>@Utility.Active(item.Active)</td>

                    </tr>
                    }
                }

            </table>

        </div>
    </div>
}
@Html.ActionLink("Quay lại", "Index", "GrandRole")

